/**
 * 定义站点模块
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.bcDeviceConfig',['water.common.AJAXService']);
	
	module.service('$bcDeviceConfigService',function($AJAXService){
				
		this.getList = function(deviceId){
			var promise = $AJAXService.post("/BcDeviceConfig/getList",{deviceId:deviceId});
			return promise;
		}
		
		this.create = function(model){
			var promise = $AJAXService.post("/BcDeviceConfig/create",model);
			return promise;
		}
		
		this.creates = function(models){
			var promise = $AJAXService.post("/BcDeviceConfig/creates",models);
			return promise;
		}
		
		this.update = function(model){
			var promise = $AJAXService.post("/BcDeviceConfig/update",model);
			return promise;
		}
		
	})
}(window, angular));